﻿/**
 * Created by xjchen on 8/27/21.
 * */

#ifndef MIDDLEWARE_MEMORY_H
#define MIDDLEWARE_MEMORY_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>

void dma_transfer(char *dest, const char *src, size_t len, bool wait);

void cache_inv(void *blockPtr, size_t byteCount, bool wait);

void cache_wb(void *blockPtr, size_t byteCount, bool wait);

void cache_wbInv(void *blockPtr, size_t byteCount, bool wait);

#ifdef __cplusplus
}    /** extern "C" */
#endif

#endif /** MIDDLEWARE_MEMORY_H */
